<!DOCTYPE html>
<html dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>">
<head>
<meta charset="UTF-8" />
<title>Lef.bg - <?php echo $title; ?></title>
<base href="<?php echo $base; ?>" />
<?php if ($description) { ?>
<meta name="description" content="<?php echo $description; ?>" />
<?php } ?>
<?php if ($keywords) { ?>
<meta name="keywords" content="<?php echo $keywords; ?>" />
<?php } ?>
<?php if ($filter_params) { ?>
<meta name="robots" content="noindex, follow" />
<?php } ?>
<?php if ($home_page) { ?>
<link href="http://lef.bg" rel="canonical" />
<?php } ?>
<?php if ($icon) { ?>
<link href="<?php echo $icon; ?>" rel="icon" />
<?php } ?>
<?php foreach ($links as $link) { ?>
<link href="<?php echo $link['href']; ?>" rel="<?php echo $link['rel']; ?>" />
<?php } ?>
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/stylesheet.css?v=1" />
<?php foreach ($styles as $style) { ?>
<link rel="<?php echo $style['rel']; ?>" type="text/css" href="<?php echo $style['href']; ?>" media="<?php echo $style['media']; ?>" />
<?php } ?>

<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/reset.css" />
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/style.css" />
<link rel="stylesheet" type="text/css" href="catalog/view/javascript/jquery/ui/themes/ui-lightness/jquery-ui-1.8.16.custom.css" />

<!--[if IE 7]> 
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/ie7.css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/ie6.css" />
<![endif]-->
<?php if ($stores) { ?>
<script type="text/javascript"><!--
$(document).ready(function() {
<?php foreach ($stores as $store) { ?>
$('body').prepend('<iframe src="<?php echo $store; ?>" style="display: none;"></iframe>');
<?php } ?>
});
//--></script>
<?php } ?>
<?php // echo $google_analytics; ?>
</head>
<body>
<script type="text/javascript" src="catalog/view/javascript/modernizr.js"></script>
<script type="text/javascript" src="catalog/view/javascript/jquery/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="catalog/view/javascript/jquery/ui/jquery-ui-1.8.16.custom.min.js"></script>
<script type="text/javascript" src="catalog/view/javascript/common.js"></script>
<script type="text/javascript" src="catalog/view/javascript/autocomplete2/jquery.autocomplete2.min.js"></script>
<script type="text/javascript" src="catalog/view/javascript/aoutocomplate.js"></script>
<?php foreach ($scripts as $script) { ?>
<script type="text/javascript" src="<?php echo $script; ?>"></script>
<?php } ?>

<div id="notification"></div>

<div id="wraptop">
	<div id="wraptopin">
		<div id="logo">
			<a href="/"></a>
		</div>
		<div id="search">
			
			<div id="searchform">
            	<input type="text" name="search" value="" placeholder="<?php echo $text_search; ?>" />
				<a class="button"><?php echo $text_search; ?></a>
                <div id="auto-results"></div>
			</div>
			
			<div id="logintop">
				<?php if (!$logged) { ?>
				<?php echo $text_welcome; ?>
				<?php } else { ?>
				<?php echo $text_logged; ?>
				<?php } ?>
			</div>
			
		</div>
		<div id="topcategories">
			<h5>От магазина</h5>
			<a href="/топ-продукти">Топ продукти</a><br>
			<a href="/промоции">Промоции</a><br>
			<a href="/най-нови">Последно добавени</a><br>
		</div>
		
		<div id="cartholder">
			<?php echo $cart; ?>
            <a href="#" id="contactslink">Контакти</a>
			<div id="contacts">
            	Телефон: +359 888 144 900<br><br>
                <a class="button" href="/контакти">адрес и запитвания</a>
            </div>
		</div>
	</div>
</div><!--#wraptop-->

<div id="wrapcontent"><div id="wrapcontentin">